/* Home Page Specific Variables */
:root {
    --primary-custom: #002647;
    --home-primary: #001120;
    --home-secondary: #001d36;
    --home-text: #333;
    --home-text-light: #555;
    --home-background: #f0f8ff;
    --home-white: #fff;
    --home-shadow-small: 0 2px 8px rgba(0, 0, 0, 0.04);
    --home-shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --home-border-radius: 10px;
    --home-transition: 0.3s ease;
}

body {
    background-color: var(--home-background);
    font-family: 'Rubik';
}

section {
    width: 100%;
    scroll-margin-top: 100px;
}

/* Reset styles only for main content */
.main-content {
    margin: 0;
    padding: 0;
    background-color: var(--home-background);
}

/* Home Page Typography - Scoped to specific sections */
.main-content h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: bold;
    color: var(--home-primary);
    margin-bottom: 1rem;
}

.main-content h3 {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--home-primary);
}

.main-content p {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--home-text-light);
    margin-bottom: 1rem;
}

.paddingContainer {
    padding: 0 20px;
    max-width: 1320px;
    margin: 0 auto 40px;
}

/* Title Section */
.main-content .title-section {
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.title {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 0.5rem;
}

.title-content {
    flex: 1;
    text-align: left;
}

.title .eng-title  {
    font-size: clamp(14px, 5vw, 68px);
    color: var(--home-primary);
    text-align: center;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #155c75;
    width: 100%;
}

.title .odia-title {
    font-family: "Anek Odia", sans-serif;
    font-size: clamp(20px, 6.2vw, 68px);
    color: #00182e;
    text-align: center;
    font-weight: bolder;
    margin: .5rem 0;
    padding-top: 20px;
    line-height: clamp(20px, 3vw, 30px);
    text-decoration: underline;
    text-underline-offset: 8px;
    /* letter-spacing: 4px; */
}

/* Slideshow Component */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
    margin: auto;
    overflow: hidden;
    background: #222;
    border-radius: var(--home-border-radius);
    box-shadow: var(--home-shadow-medium);
}

.mySlides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.mySlides.active {
    opacity: 1;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--home-border-radius);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 6px 6px 0;
    -webkit-user-select: none;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.dots {
    text-align: center;
    padding: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    display: flex; /* Helps center the visible dots */
    justify-content: center;
    align-items: center;
    min-height: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    /* IMPORTANT: Ensure this transition property is present! */
    transition: background 0.3s, outline 0.3s, width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s;
    border: 1px solid transparent;
    opacity: 1;
    flex-shrink: 0;
}

/* Default active styles (keep these) */
.dot.active,
.dot:hover {
    background-color: #717171;
}

.dot.dot-small {
    width: 8px !important; /* Smaller size for fading dots */
    height: 8px !important;
    margin: 0 2px !important; /* Less margin for smaller dots */
    background-color: #ccc !important; /* Slightly lighter color */
}

.dot.dot-hidden {
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important; /* Collapse margins when hidden */
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none !important; /* Disable interaction when hidden */
}

.fade {
    transition: opacity 0.8s ease-in-out;
}


/* Welcome Banner Marquee */

.main-content .welcomeBanner-container {
    display: flex;
    width: 100%;
    background: #bae6fd;
    padding: 10px;
    border-radius: var(--home-border-radius);
    box-shadow: var(--home-shadow-medium);
    overflow: hidden;
}

.banner-container {
    width: 100%;
    padding: 5px 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-track 18s linear infinite;
}

.marquee-text {
    display: inline-block;
    font-size: 2rem;
    color: #000;
    margin-right: 60px;
    font-weight: 500;
}

@keyframes marquee-track {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.link-list {
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 10px 18px;
    margin: 0;
    height: 100%;
    overflow-y: auto;
}

.link-list::-webkit-scrollbar {
    display: none;
}

.subpage-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-list a {
    color: #001d36;
    text-decoration: none;
    font-weight: bold;
    font-style: italic
}

.link-list a:hover {
    text-decoration: underline;
}

.content-wraper {
    background-color: #002647;
    padding: 8px;
    border-radius: 8px;
}

.content-wraper h4 {
    text-transform: uppercase;
    width: fit-content;
    font-weight: bolder;
    color: #fff;
    padding-bottom: 6px;
    margin-left: 10px;
    border-bottom: 3px solid #fff;
}

.content-wraper .inner-content-wraper {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 100%;
}

.carousel-item img {
    object-fit: cover;
}

.list-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    position: relative;
    background-color: #001d36;
}

.list-wrapper::-webkit-scrollbar {
    display: none;
}

.list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
    animation: glide-vertical 12s linear infinite;
}

.list-wrapper li {
    padding: 8px 15px;
    text-align: center;
}

/* Infinite vertical scrolling */
@keyframes glide-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
        /* Move up by half, since list is doubled */
    }
}

.scroll-list a {
    color: #fff;
    text-decoration: none;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.scroll-list a:hover {
    text-decoration: underline;
}


/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .slideshow-container {
        height: 400px;
    }

    .marquee-text {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 992px) {
    .title {
        padding: 0.5rem;
    }

    .title img {
        display: none;
    }

    .title-content {
        text-align: center;
    }

    .slideshow-container {
        height: 350px;
    }

    /* .main-content .about-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about-content img {
        max-height: 300px;
    } */

    .marquee-text {
        font-size: 1.5rem;
    }


}

@media screen and (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }

    .prev,
    .next {
        padding: 12px;
        font-size: 20px;
    }

    .main-content .welcomeBanner-container {
        padding: 8px;
    }

    .marquee-text {
        font-size: 1.2rem;
        margin-right: 40px;
    }
}

@media screen and (max-width: 480px) {
    p {
        font-size: 14px;
    }

    .paddingContainer {
        margin-bottom: 20px;
    }

    .title {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .title img {
        display: none;
    }

    .title-content {
        text-align: center;
    }

    .title h1 {
        margin-bottom: 0.3rem;
    }

    .slideshow-container {
        height: 250px;
        border-radius: 8px;
    }

    /* .main-content .about-content {
        padding: 15px;
    } */
    .about_heading,
    .gallery-section h2 {
        color: #00182e;
    }

    .prev,
    .next {
        padding: 8px;
        font-size: 16px;
    }

    .dot {
        height: 8px;
        width: 8px;
        margin: 0 3px;
    }
    
    .dot.dot-small {
        width: 4px !important; /* Smaller size for fading dots */
        height: 4px !important;
        margin: 0 2px !important; /* Less margin for smaller dots */
        background-color: #ccc !important; /* Slightly lighter color */
    }

    .marquee-text {
        font-size: 1rem;
        margin-right: 30px;
    }
}

@media screen and (max-width: 360px) {
    .slideshow-container {
        height: 200px;
    }

}

a.carousel-btn {
    text-decoration: none;
    padding: 5px 12px; 
    border: 1.6px solid #fff; 
    border-radius: .25rem; 
    color: #fff; 
    height: fit-content; 
    vertical-align: middle;
    transition: ease 200ms;
}

a.carousel-btn:hover {
    background: #fff;
    color: #002647;
}

.bg-custom { background-color: var(--primary-custom) !important; }
.text-custom { color: var(--primary-custom) !important; }
.btn-custom { background-color: var(--primary-custom) !important; color: white !important; border: none; margin: 0 !important; }
.btn-custom:hover { background-color: #004e8a !important; color: white !important; }
.btn-custom-outline { border-color: var(--primary-custom) !important; color: var(--primary-custom) !important; margin: 0 !important; }
.btn-custom-outline:hover { background-color: var(--primary-custom) !important; color: white !important; }

/* Card Interactions */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: .1em solid transparent;
    height: 100%;
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 3rem rgba(0, 38, 71, 0.15) !important;
    border-color: var(--primary-custom);
}

.card-body {
    height: fit-content;
    padding: 0;
}

/* Icon containers */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 38, 71, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-custom);
    margin-bottom: 1.5rem;
}

.card-link { text-decoration: none; color: inherit; }